package XMFramework.Interface.Architechture
{
	import XMFramework.Interface.IFramework;
	import XMFramework.Interface.IModule;

	public class SMController
	{				
		use namespace MVCLayerCommand;
		
		/**
		 * Pointer to singleton SNS framework object 
		 */		
		public var coreSNSFramework : IFramework;
		
		/**
		 * Reference pointer to collerate view tire 
		 * @return 
		 * 
		 */		
		public var viewLayer : SMView	=	null;
		
		/**
		 * Reference pointer to collerate model tire  
		 * @return 
		 * 
		 */		
		public var modelLayer : SMModel	=	null;		
	
		/**
		 * Reference pointer to own module object
		 * @return 
		 * 
		 */		
		public var modulePtr : IModule;		
		
		/**
		 * 
		 * 
		 */		
		public function onRegisterCompleted() : void
		{
			
		}
		
		/**
		 * 
		 * @return 
		 * 
		 */		
		protected function transmitModelData( methodName : String, ...params ) : void
		{
			if( modelLayer )
				modelLayer.setAttribute.apply( null, [methodName].concat( params ) );
		}
	}
}